/**
 * Created with Intellij JDEA
 * Description:
 * User:
 * Date:2022-04-14
 * Time:20:59
 */
public class 最富有客户的资产总量 {
    public int maximumWealth(int[][] accounts) {
        int ret = 0;
        for (int i = 0; i < accounts.length; i++) {
            int count = 0;
            for (int j = 0; j < accounts[i].length; j++) {
                count += accounts[i][j];
            }
            if (ret < count) {
                ret = count;
            }
        }
        return ret;
    }

}
